package com.xdw.ui_demo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.xdw.ui_demo.recyclerView.RecyclerViewActivity;

public class MainActivity extends AppCompatActivity {
    private EditText usernameView, passwordView;
    private Button loginButton;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        loginButton =findViewById(R.id.button);
        loginButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //启动界面
                Intent intent = new Intent();
                intent.setClass(MainActivity.this, RecyclerViewActivity.class);
                startActivity(intent);
                finish();

            }
        });

    }
}
